SCRIPT_HOME="/root/workspace/shark-game/trunk/Script"

export LUA_PATH="$SCRIPT_HOME/Libs/loop-2.3-beta/lua/?.lua;$SCRIPT_HOME/Libs/lunit-0.5/?.lua;$SCRIPT_HOME/Logic/?.lua;$SCRIPT_HOME/Libs/luacov-0.2/src/?.lua;$SCRIPT_HOME/Libs/lemock-0.6/build/?.lua"
export LUA_CPATH="$SCRIPT_HOME/Libs/luaprofiler-2.0.2/bin/?.so;$SCRIPT_HOME/Libs/modules/?.so;$SCRIPT_HOME/Libs/lsqlite3-0.8/?.so"

export LD_LIBRARY_PATH="."

#./lunit
lua ./runTest.lua

if [ -z $ENABLE_COVERAGE ]
then
	ENABLE_COVERAGE="false"
fi

if [ $ENABLE_COVERAGE = "true" ]
then
	lua $SCRIPT_HOME/Libs/luacov-0.2/src/bin/luacov
	rm -rf luacov.stats.out
fi
